package com.gcj.study04jdk8.model;

import java.util.List;

public class TestVO {


    /**
     * 主键
     */
    private  long id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private int age;

    public TestVO() {
    }

    public TestVO(long id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public static void printStudents(List<TestVO> testVOS){
        System.out.println("-------------------------------");
        testVOS.forEach(s->System.out.println(s.toString()));
        System.out.println(" ");
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
